package com.hyl.t286mybatisboot.mapper;

import com.hyl.t286mybatisboot.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public SysUser findByAcount(String account);

    int findCount(@Param("realName") String realName,
                  @Param("roleId")Integer roleId);

    List<SysUser> findByPage(@Param("realName") String realName,
                             @Param("roleId")Integer roleId,
                             @Param("beginIndex")Integer beginIndex,
                             @Param("showSize")Integer showSize);

    SysUser findById(Integer id);
}
